package com.itcpeng.dao;

import com.github.pagehelper.Page;
import com.itcpeng.pojo.Member;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface MemberDao {
    List<Member> findAll();
    Page<Member> selectByCondition(String queryString);
    void add(Member member);
    void deleteById(Integer id);
    Member findById(Integer id);
    Member findByTelephone(String telephone);
    void edit(Member member);
    Integer findMemberCountBeforeDate(String date);
    Integer findMemberCountByDate(String date);
    Integer findMemberCountAfterDate(String date);
    Integer findMemberTotalCount();

    List<Map<String, Object>> getMemberReportByAge();

    List<Map<String, Object>> getMemberReportBySex();

    //会员档案分页
    Page<Member> findPage(String queryString);

    //体检状态分页
    Page<Map> findStatePage(String queryString);


    //统计会员
    Integer findCountByMonth(String monStr);
}
